package com.xuanyuan.jni

class NativeLib {

    /**
     * A native method that is implemented by the 'jni' native library,
     * which is packaged with this application.
     */
    @Throws(Exception::class)
    external fun stringFromJNI() : String

    companion object {
        // Used to load the 'jni' library on application startup.
        init {
            System.loadLibrary("jni")
        }
    }


    /**
     * 生产新的Exception
     */
    fun createException() {
        val a = 10 / 0 + 10
    }
}